<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>新增店铺</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="script/commons.js" type="text/javascript">
	
</script>
<script type="text/javascript">
	function check() {
		with (document.all) {
			if (customer.value == "") {
				alert("店铺名称不允许为空");
				return false;
			} else {
				alert("保存成功");
				document.fincustomerForm.submit();
			}
		}
	}
</script>
</head>
<body>
	<html:form method="post" action="customeradd.do">
		<br />
		<div class="page_title">客户管理&nbsp; &gt; 新增店铺</div>
		<br />
		<br />
		<div class="button_bar"></div>
		<table class="query_form_table">
			<tr>
				<th colspan="2"><span class="red_star">*</span>为必填项</th>
			</tr>
			<tr>
				<th>店铺名称</th>
				<td><html:text property="customer" styleId="customer" /> <html:errors
						property="customer" /> <span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<th>所属渠道</th>
				<td><html:select property="customer">
						<html:option value="1">武汉</html:option>
						<html:option value="2">北京</html:option>
					</html:select> <span class="red_star">*</span>
				</td>
			</tr>
			<tr>
				<th>备注</th>
				<td><html:text property="customerRemark"
						styleId="customerRemark" /> <html:errors
						property="customerRemark" /> <span class="red_star">*</span>
				</td>


			</tr>
		</table>
		<br />


		<div class="button_bar">
			<c:if
				test="${finuser.finrole.roleId == 1 or finuser.finrole.roleId == 3 or finuser.finrole.roleId == 4}">
				<button type="button" class="common_button" onclick="check();">
					保存</button>
			</c:if>
			<c:if
				test="${finuser.finrole.roleId != 1 and  finuser.finrole.roleId != 3 and  finuser.finrole.roleId != 4}">
				<button type="button" class="common_button" disabled="true">
					保存</button>
			</c:if>
			<button class="common_button" onclick="back();">返回</button>

			<button class="common_button" onclick="help('添加客户，只对管理员开放');">
				帮助</button>

		</div>
		<script>
			setCurTime('t1');
			setCurTime('t2');
		</script>
	</html:form>
</body>
</html>